double fcos(double x);